055 door animation up and down motion

现在,在这个示例中,您可以看到动画和门动画 V.N.
All right now in this example both see the animation and the door animation V.N.

使用两个按钮为门和运动设置动画。
animating the door and movement by using two buttons.

好的。
All right.

这些由 Mindif 电机描绘的多丽丝动画你可以看到上下。
And these animation of Dorice depicted by mindif motor you can see that up and down.

那么在门的场景中如何做到这一点呢?
So how to do that in the scene of door.

现在的矩形动画在垂直方向上的原理是一样的吗?
Have you the same principle that the animation of rectangle now in vertical direction.

好的。
All right.

现在你可能想知道为什么你看不到这个矩形向上移动,就像我们在盒子动画中看到的那样。
Now you might wonder why don't you see this this rectangle moving up as we're seeing in the box animation.

这是因为我在我的哦这是 Smerdon 矩形的顶部使用了一个白色矩形。
This is because I'm using a white rectangle over the top of my oh this the Smerdon rectangle right.

所以那个矩形超出了这个框,我的动画看起来会很棒,你知道。
So that rectangle goes beyond this box and my animation will be will look great you know.

否则你会看到门来了。
Otherwise you will see the door is coming.

这部分的所有内容都将在这里显示为我使用过的这个盒子的白色。
All of this out of this part it will be shown here to a white that I have used this box.

因此,如果我只是将框滑到此处,请让我再次向您展示。
So let me show you again if I just slide the box here.

这就是你可以知道的创造性。
This is how creatively you can you know.

你做了你的 HMO,所以我们注意到这里的盒子正在上升。
And you made your HMO so we notice here the box is going up.

严格的丹达。
The strict danda.

所以我有高区 Danders 使用这个白色矩形盒子。
So I have high district Danders using this white rectangle box.

好的。
OK.

好吧,现在如何在这种情况下创建它。
All right so now how to create it in this case.

我们先来看看逻辑。
Let's see the logic first.

在 Bielski 逻辑中,我们使用向上按钮来驱动电机输出。
In the Bielski logic we are using the button up which is actuating a motor output.

所以这个向上按钮就在这里。
So this up button is here.

所以这是向上按钮,它在路上启动更多的 Procul 0.0,我认为你有一个范围。
So this is the up button which is actuating a more Procul 0.0 on the road I'd see you as having a range.

现在这个动画讲述了 M.W. 的价值。
Now this animation says the value of M.W.

75 还不到一百。
75 is less than hundred.

这是一个计时器,但稍后会回到这个计时器。
And this is a timer but it's come back to that later.

我们正在为 M.W. 添加一项
We're adding one to M.W.

75,输出最高75。
75 and the output is up to 75.

现在这个电阻实际上是我的动画的搜索,但对于这个矩形通知器来说这是 32。
Now this resistor is actually that is a search of my animation but for this rectangle noticer This is 32.

如果我点击,数值就会增加,门就会升起,如果你看到这里,这是一个闪烁的位,它实际上正在帮助我们为我的 M.W 添加 1。
If I click up the value increases and the door goes up and if you see here this is a blinking bit which is actually helping us to add 1 to my M.W.

75 这有助于动画。
75 which helps in the animation.

所以,如果值超过一百,现在就不会发生什么了。
So just not what is happening now if the value goes beyond hundred.

这不会动画,因为我们不希望这样,所以我们有这个限制。
This will not animate because we don't want that so we have this limit.

好的。
All right.

现在请注意这部分逻辑,如果我单击,如果我单击电机向下,即九十点二,这将减去一,并以与下注相同的采样频率再次执行 75。
Now notice this part of the logic if I click if I click motor down which is ninety point two this was going to subtract one from and do 75 again with the same sampling frequency of the same with a bet.

所以门正在下降,所以商店的动画是基于这个电阻器 M.W.
So the door is coming down so the animation of the store is based on this resistor M.W.

75 实际上,可以有多种方法来制作这个诺齐克,但这是最简单的方法之一。
75 actually there could be multiple ways to make this Nozick But this is one of the easiest way.

所以你可以看到门现在正在下降并且门的位置为零。
So you can see that door is coming down now and the door is at zero.

这将停止,因为范围和值大于零。
This will stop because the ranges and the value is greater than zero.

那么只有这个递减范围是负一,最大范围是100。
Then only this decremented the range is minus one and the maximum range is 100.

好的。
OK.

现在让我们注意定时器脉冲位。
Now let's notice the timer pulse bit.

因此,我们使用 10 毫秒的计时器,每 10 毫秒重置一次。
So we're using a timer of 10 millisecond just to reset at every 10 millisecond.

这将重置它。
This is going to reset it.

因此,当电机启动或电机关闭时,损坏将会发生,这次我们将在输出中使用它,只是为了给这个动画现在的标题为 10 毫秒,但实际上在模拟中是这样的与 10 毫秒相比非常慢,因为也许这是一个模拟器,根本不会真正执行 10 毫秒,有些你知道模拟器和真实环境之间存在一些不匹配。
So when the motor is up or when the motor is down the damage is going to run and we're going to be using this this time at output just to give this one over animation now headed it 10 millisecond but actually in simulation this is this is very slow compared to 10 millisecond because maybe this is a simulator which does not really execute a 10 millisecond at all that some you know some mismatch between simulator and real environment.

这些都是限制因素。
These are the constraints.

现在你注意到这里的电机赌注了。
Now you noticed the motor bet here.

当电机沿一个方向运行以及沿另一方向运行时,该电机显示为绿色。
This motor is shown by green when the motor is running in one direction and also in the other direction.

这是通过相同的颜色显示的,如何使用电机位来动画显示绿色调色板,这是一个 1.0 宿舍水床。
This is shown by the same color how to animate this how to show that green color palette using a motor bit which is one 1.0 dorm waterbed.

所以这对于温和派或水下派的情况都是如此。
So this is it is on on both the cases of the moderates or the water down.

所以我们在这里使用这个位。
So this bit we are using here.

如果您看到这是交通元素中的图形元素,则这里是电机并且电机为零。
If you see this is a graphic element in the traffic element here is the motor and the motor is zero.

这是电机中的图形。
This is the graphic in the motor.

我使用的是图形,如果我在屏幕上向您显示该图形,则会给出目前 PC 中使用的动机地​​址。
I use one that's the graphic and if I show you in the screen this graphic is given the address toward motivic which is used in the PC right now.

这些图形和这些图形您可以轻松找到,这只是为了在您的简单库中向您解释。
This graphics and these graphics you can easily found this is just to explain you in your simple library here.

好吧,您可以使用这个库,并且可以创造性地将这些图形放入我的屏幕中。
All right you can use this library and you can creatively put those graphics in to my screen.

我希望这是制作门动画最简单的一个。
I hope this was the easiest one to animate the door.

如果您有任何疑问,可以回复我。
And if you have any doubt you can get back to me.

这是我们的动画课程,供他们审查,如果我对动画有任何疑问,或者如果您被困在某个地方,您可以将您的屏幕发送给我,我可以帮助您。
And this was our animation lessons now for their review and some other parts of my if I have any doubt in the animation or if you're stuck somewhere you can send me your screen and I can help you with that.

好的。
All right.

感谢您的观看。
Thank you for watching.

我会在接下来的两场比赛中见到你。
I'll see you in the next two.